<?php

class CommandLineFrontController extends TinyMVCFrontController {

	public function __construct(CommandLineRequest $request, TinyMVCViewRenderer $viewRenderer = null, $defaultModuleName = 'cli') {
		parent::__construct($request, (is_null($viewRenderer) ? new TinyMVCViewRenderer : $viewRenderer), $defaultModuleName);
	}

	public function setHostName($hostName) {
		global $_SERVER;
		$_SERVER['SERVER_NAME'] = $hostName;
	}

}
